/**
 * 
 */
package jvs.peer.net;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;

/**
 * @author qiangli
 * 
 */
public class PeerURLStreamHandlerFactory implements URLStreamHandlerFactory {

	/**
	 * 
	 */
	public PeerURLStreamHandlerFactory() {
	}

	public URLStreamHandler createURLStreamHandler(String protocol) {
		if (protocol.equalsIgnoreCase("peer")) {
			return new PeerURLStreamHandler();
		}
		return null;
	}

}
